package com.dreem.proxy.dynamic;

/**
 * @program: DesignParrtern
 * @description: 客户端
 * @author: Peng
 * @create: 2021-02-25  21:08
 **/
public class Client {
    public static void main(String[] args){
        ITeacherDao teacherDao = new TeacherDao();
        ITeacherDao proxyInstance = (ITeacherDao) new ProxyFactory(teacherDao).getProxyInstance();
        proxyInstance.teach();
        System.out.println(proxyInstance.getClass());
    }
}
